package com.leo.jdkcore.jvm;

import org.junit.Test;


public class JVMTest {
	
	/**
	 * 打印整数的二进制表示
	 */
	@Test
	public void testBinary(){
		int a=-6;
		a = 6;
		for(int i=0;i<32;i++){
			int t=(a & 0x80000000>>>i)>>>(31-i);
			System.out.print(t);
		}
	}
	
}
